<?php
/**
 * 脚本名：connConfig.php
 * 说明：mysql和redis连接参数设置类
 */
$user=new Config();

class Config {
	public static $mysql_config;

	function __construct()
	{
		$dir = $_SERVER['DOCUMENT_ROOT']."dbconfig.php";
		$runtime_config=include $dir;
		self::$mysql_config=$runtime_config[0];
	}

    public static $mod = 5;
    public static $redis_data_config = array(
        'redis0' => array('host' => '127.0.0.1', 'port' => 25001, 'pass' => 'zyl12345!QWEASD901'),
        'redis1' => array('host' => '127.0.0.1', 'port' => 25002, 'pass' => 'zyl12345!QWEASD901'),
        'redis2' => array('host' => '127.0.0.1', 'port' => 25003, 'pass' => 'zyl12345!QWEASD901'),
        'redis3' => array('host' => '127.0.0.1', 'port' => 25004, 'pass' => 'zyl12345!QWEASD901'),
        'redis4' => array('host' => '127.0.0.1', 'port' => 25005, 'pass' => 'zyl12345!QWEASD901'),
    );

    public static $redis_cache_config = array(
        'host' => '127.0.0.1',
        'port' => 25000,
        'pass' => 'zyl12345!QWEASD901',
    );
	//推送服务器地址http://192.168.0.111:20002
	public static $ip_server_confing = array(
	      'ip' => '218.93.208.22',
		  'port'=> '1000',      
	      'myport'  =>'20002'
	);
	
}
?>
